#include "Widget.h"

#include "QtApi.h"
#include <QApplication>
#include <QtWebChannel>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    Widget w;
    QtApi api(&w);

    QWebChannel channel;
    channel.registerObject(QStringLiteral("qtApi"), &api);

    w.loadWebPage();
    w.setWebChannel(&channel);
    w.show();

    return a.exec();
}
